<template>
  <div class="box">
    <h1>父组件</h1>
    <v-child msg="我是来自父组件的数据" data="10" @toParent="toParent"></v-child>
  </div>
</template>

<script>
import vChild from "./setup.vue"
export default {
    components:{
        vChild
    },
    methods:{
      toParent(msg){
        console.log(msg);
      }
    }
}
</script>

<style>

</style>